import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import request from "@/utils/request";
import './assets/gloable.css'
import SIdentify from './components/front/identify'
import './assets/icon/iconfont.js' //引入阿里巴巴图标库js
import './assets/icon/iconfont.css'//引入阿里巴巴图标库css
import {formatTime} from "./utils/time";
import store from './store'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

import vueSmoothScroll from 'vue2-smooth-scroll'
Vue.use(vueSmoothScroll)
Vue.config.productionTip = false
Vue.use(SIdentify)
Vue.use(ElementUI, { size: "small" });
Vue.prototype.request=request
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

//自定义指令
Vue.directive('title',  function (el, binding) {
  document.title = el.dataset.title
})
// 格式化时间
Vue.filter('format', formatTime)

Vue.use(mavonEditor)